import request from '@/utils/request'

export function getScenicList(data) {
	return request({
		url: '/scenics',
		method: 'get',
    params: data
	})
}

export function addScenic(data) {
  return request({
    url: '/scenics',
    method: 'post',
    data
  })
}

export function ModifyScenic(data) {
  return request({
    url: '/scenics',
    method: 'put',
    data
  })
}

export function ModifyStatus(data) {
  return request({
    url: '/scenics/status',
    method: 'put',
    data
  })
}

export function getScenicModifyData(data) {
  return request({
    url: '/scenics/getScenicById',
    method: 'get',
    params: data
  })
}

export function getScenicProduct() {
  return request({
    url: '/scenicProduct/selectAllProduct',
    method: 'get'
  })
}
